package com.centaline.androidsalesblog.api.usercenter;

import com.android.volley.Request;
import com.centaline.androidsalesblog.api.UserCenterApi;
import com.centaline.androidsalesblog.model.responseobject.UserCenterRo;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 添加委托信息
 * Created by Lihq on 2016/3/17.
 */
public class InsertEntrustInfoRequestApi extends UserCenterApi<UserCenterRo> {
    private String UserId;
    private String EntrustWay = "线上";
    private String EntrustType;//委托类型
    private int RegionID;
    private int GscpoeID;
    private String EstateName = "";//楼盘名称
    private String CustomerMobile = "";
    private String CustomerName = "";
    private String CustomerSex = "";//性别（先生、女士）
    private String Remark = "";
    private String EstateCode = "";//楼盘代码
    private String CityCode = "";
    private String Source = "";
    private String Status = "";//待处理、接受、忽略、完成
    private String StaffNo = "";
    private String  AdsNo = "";//ads广告
    private String PostID = "";//房源id
    private String AppName = "";
    private String StaffName = "";
    private int RoomCnt;
    private double PriceFrom;
    private String PriceTo;
    private String StaffMobile = "";//经纪人手机号
    private boolean IsReplacement;//是够置换
    private double Area;//面积

    public InsertEntrustInfoRequestApi(Class<?> tag, Class<UserCenterRo> aClass, IResponseListener<UserCenterRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }
    public void setUserId(String userId) {
        UserId = userId;
    }

    public void setEntrustWay(String entrustWay) {
        EntrustWay = entrustWay;
    }

    public void setEntrustType(String entrustType) {
        EntrustType = entrustType;
    }

    public void setRegionID(int regionID) {
        RegionID = regionID;
    }

    public void setGscpoeID(int gscpoeID) {
        GscpoeID = gscpoeID;
    }

    public void setEstateName(String estateName) {
        EstateName = estateName;
    }

    public void setCustomerMobile(String customerMobile) {
        CustomerMobile = customerMobile;
    }

    public void setCustomerName(String customerName) {
        CustomerName = customerName;
    }

    public void setCustomerSex(String customerSex) {
        CustomerSex = customerSex;
    }

    public void setRemark(String remark) {
        Remark = remark;
    }

    public void setEstateCode(String estateCode) {
        EstateCode = estateCode;
    }

    public void setCityCode(String cityCode) {
        CityCode = cityCode;
    }

    public void setSource(String source) {
        Source = source;
    }

    public void setStatus(String status) {
        Status = status;
    }

    public void setStaffNo(String staffNo) {
        StaffNo = staffNo;
    }

    public void setAdsNo(String adsNo) {
        AdsNo = adsNo;
    }

    public void setPostID(String postID) {
        PostID = postID;
    }

    public void setAppName(String appName) {
        AppName = appName;
    }

    public void setStaffName(String staffName) {
        StaffName = staffName;
    }

    public void setRoomCnt(int roomCnt) {
        RoomCnt = roomCnt;
    }

    public void setPriceFrom(double priceFrom) {
        PriceFrom = priceFrom;
    }

    public void setPriceTo(String priceTo) {
        PriceTo = priceTo;
    }

    public void setStaffMobile(String staffMobile) {
        StaffMobile = staffMobile;
    }

    public void setArea(double area) {
        Area = area;
    }

    public void setReplacement(boolean replacement) {
        IsReplacement = replacement;
    }

    @Override
    public int getMethod() {
        return Request.Method.POST;
    }

    @Override
    public void setParams() {
        putParams("UserId",UserId);
        putParams("EntrustWay","线上");
        putParams("EntrustType",EntrustType);
        putParams("RegionID","");
        putParams("GscpoeID","");
        putParams("EstateName",EstateName);
        putParams("CustomerMobile",CustomerMobile);
        putParams("CustomerName",CustomerName);
        putParams("CustomerSex","先生");
        putParams("Remark",Remark);
        putParams("EstateCode",EstateCode);
        putParams("CityCode",CityCode);
        putParams("Source","ershoufang");
        putParams("Status","待处理");
        putParams("StaffNo",StaffNo);
        putParams("AdsNo","");
        putParams("PostID","");
        putParams("AppName","APP");
        putParams("StaffName",StaffName);
        putParams("RoomCnt",RoomCnt);
        putParams("PriceFrom",PriceFrom);
        putParams("PriceTo",PriceTo);
        putParams("StaffMobile",StaffMobile);
        putParams("IsReplacement",IsReplacement);
        putParams("Area",Area);
    }


    @Override
    public String getPath() {
        return "InsertEntrustInfoRequest";
    }
}

